package com.mp.approvalreq.entity.dto;

import java.util.Objects;

/**
 * Created by liuqi on 2018/7/16.
 */
public class ExchangeTemplateDTO {
	
	private Integer quitContactId;
	private Integer receiveContactId;
	private Integer companyId;
	private String templateIds;
	
	/**
	 *  通用审批流所在工程id
	 */
	private String projectIds;
	
	
	public ExchangeTemplateDTO() {
	}
	
	public Integer getQuitContactId() {
		return quitContactId;
	}
	
	public void setQuitContactId(Integer quitContactId) {
		this.quitContactId = quitContactId;
	}
	
	public Integer getReceiveContactId() {
		return receiveContactId;
	}
	
	public void setReceiveContactId(Integer receiveContactId) {
		this.receiveContactId = receiveContactId;
	}
	
	public Integer getCompanyId() {
		return companyId;
	}
	
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	
	public String getTemplateIds() {
		return templateIds;
	}
	
	public void setTemplateIds(String templateIds) {
		this.templateIds = templateIds;
	}
	
	public String getProjectIds() {
		return projectIds;
	}
	
	public void setProjectIds(String projectIds) {
		this.projectIds = projectIds;
	}
	
	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		ExchangeTemplateDTO that = (ExchangeTemplateDTO) o;
		return Objects.equals(quitContactId, that.quitContactId) &&
				Objects.equals(receiveContactId, that.receiveContactId) &&
				Objects.equals(companyId, that.companyId) &&
				Objects.equals(templateIds, that.templateIds) &&
				Objects.equals(projectIds, that.projectIds);
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(quitContactId, receiveContactId, companyId, templateIds, projectIds);
	}
	
	@Override
	public String toString() {
		return "ExchangeTemplateDTO{" +
				"quitContactId=" + quitContactId +
				", receiveContactId=" + receiveContactId +
				", companyId=" + companyId +
				", templateIds='" + templateIds + '\'' +
				", projectIds='" + projectIds + '\'' +
				'}';
	}
}
